@charset "utf-8";
//必须设置了这个才能编译有中文的注释
/*
 * Copyright (c) 2010-2015 LiZaoNet Inc. (http://www.lizaonet.com).
 * license: http://www.lizaonet.com
 */

@function parseInt($n) {
  @return $n / ($n * 0 + 1); /* 2 */
}

@function u($values) {
  /* 3 */

  $list: (); /* 4 */

  @each $value in $values {
    /* 5 */

    $unit: unit($value); /* 6 */
    $val: parseInt($value); /* 2 */

    @if ($px-only) and ($unit == 'rem') {
      /* 7 */
      $list: append($list, ($val * $pixelBase) + px); /* 7 */
    } @else if ($unit == 'px') or ($unit == 'rem') {
      /* 8 */
      $list: append($list, $value); /* 8 */
    } @else {
      @warn 'There is no unit conversion for #{$unit}'; /* 9 */
    }

  }

  @return $list; /* 10 */

}

@function xr($values) {
  $list: ();

  @each $value in $values {
    $unit: unit($value);
    $val: parseInt($value);

    @if ($unit == 'px') {
      $list: append($list, ($val / $pixelBase) + rem);
    } @else if ($unit == 'rem') {
      $list: append($list, $value);
    } @else {
      @warn 'There is no unit conversion for #{$unit}';
    }
  }

  @return $list;
}